package io.renren.common.service;

import io.renren.common.dto.AddressBookDTO;
import io.renren.common.entity.AddressBookEntity;
import io.renren.common.service.CrudService;

import java.util.List;


/**
 * 地址管理
 *
 * @author yidian ${email}
 * @since 1.0.0 2022-11-06
 */
public interface AddressBookService extends CrudService<AddressBookEntity, AddressBookDTO> {

    AddressBookEntity findDefaultAddress(Long userId);

    void UpdateAddressByUserId(AddressBookDTO addressBookDTO);

    AddressBookEntity saveAddress(AddressBookDTO addressBookDTO);

    void setDefaultAddress(AddressBookDTO addressBookDTO);

    List<AddressBookEntity> findAddressByUserId();
}